home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / setup.swf / scripts / _ApplicationStyle.as < prev    next >
Encoding:
Text File  |  2008-10-29  |  1.3 KB  |  43 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.ApplicationBackground;
  5.    import mx.styles.CSSStyleDeclaration;
  6.    import mx.styles.StyleManager;
  7.    
  8.    public class _ApplicationStyle
  9.    {
  10.       public function _ApplicationStyle()
  11.       {
  12.          super();
  13.       }
  14.       
  15.       public static function init(param1:IFlexModuleFactory) : void
  16.       {
  17.          var fbs:IFlexModuleFactory = param1;
  18.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Application");
  19.          if(!style)
  20.          {
  21.             style = new CSSStyleDeclaration();
  22.             StyleManager.setStyleDeclaration("Application",style,false);
  23.          }
  24.          if(style.defaultFactory == null)
  25.          {
  26.             style.defaultFactory = function():void
  27.             {
  28.                this.paddingTop = 24;
  29.                this.paddingLeft = 24;
  30.                this.backgroundGradientAlphas = [1,1];
  31.                this.horizontalAlign = "center";
  32.                this.paddingRight = 24;
  33.                this.backgroundImage = ApplicationBackground;
  34.                this.paddingBottom = 24;
  35.                this.backgroundSize = "100%";
  36.                this.backgroundColor = 8821927;
  37.             };
  38.          }
  39.       }
  40.    }
  41. }
  42.  
  43.